﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" EnableEventValidation="false" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">


    

    <div>
        
         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" />
         <asp:Button ID="Button2" runat="server" Text="添加" OnClick="Button2_Click" />

       
    </div>
   
    <div style="font-family:宋体">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            OnRowEditing="GridView1_RowEditing" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"  OnRowUpdating="GridView1_RowUpdating" 
            BackColor="#FF99CC" BorderColor="#006699" ForeColor="#003300">
            <Columns>
                <asp:BoundField datafield="Id" HeaderText="Id" ReadOnly="true"/>
                <asp:BoundField DataField="ProductsName" HeaderText="产品名称"/>
                <asp:BoundField  DataField="BrandId" HeaderText="品牌Id"/>
                <asp:BoundField  DataField="Describe" HeaderText="产品描述"/>
                <asp:BoundField  DataField="Remarks" HeaderText="备注"/>
                <asp:CommandField ButtonType="Button" HeaderText="操作" ShowDeleteButton="True" ShowEditButton="True" ShowHeader="True" />
    
            </Columns>
        </asp:GridView>
        <br />

      
    </div>

    

</asp:Content>
